

<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title></title>
	<meta name="format-detection" content="telephone=no, address=no">
	<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
	<meta name="apple-touch-fullscreen" content="yes"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<link href="../addons/weishare/css/bootstrap.min.css" rel="stylesheet">
	<link href="../addons/weishare/css/font-awesome.min.css" rel="stylesheet">
	<link href="../addons/weishare/css/animate.css" rel="stylesheet">
	<link href="../addons/weishare/css/common.css" rel="stylesheet">
	{php echo register_jssdk(false);}
	<script type="text/javascript">

	wx.ready(function () {
		sharedata = {
			title: "{$share[shareTitle]}",
			desc: "{$share[shareContent]}",
			link: '{$_W[siteroot]}app{php echo str_replace('./','/',$this->createMobileUrl('Auth',array('id'=>$share['id'],'uid'=>$shareUser['id'],'au'=>1)))}',
			imgUrl: "{$_W['attachurl']}{$share['shareIcon']}",
			success: function(){
				
			},
			cancel: function(){
				
			}
		};
		wx.onMenuShareAppMessage(sharedata);
		wx.onMenuShareTimeline(sharedata);
	});
	
</script>
	<script src="../addons/weishare/js/require.js"></script>
	<script src="../addons/weishare/js/app/config.js"></script>
	<script type="text/javascript" src="../addons/weishare/js/lib/jquery-1.11.1.min.js"></script>
	

	
	<script type="text/javascript">
		window.sharedata = {
			'appId': '', // 服务号可以填写appId
			'imgUrl' : '', // 缩略图
			'link': '', // 内容链接
			'title': '', // 内容标题
			'desc': '' // 内容简介
		};
		window.onshared = ''; 
	</script>
	
</head>
<body>
<div class="container container-fill">
	
<style>
	body{background: {$share['background']};}
	.head img{width:100%;}
	.content{padding:10px;color:#fff;}
	.content img{max-width:100%;}
</style>
<div class="head">
<img src="{$_W['attachurl']}{$share['thumb']}">
</div>
<div class="content">
	{$share['rule']}

</div>
</body>



<script>
	//对分享时的数据处理
	function _removeHTMLTag(str) {
		str = str.replace(/<script[^>]*?>[\s\S]*?<\/script>/g,'');
		str = str.replace(/<style[^>]*?>[\s\S]*?<\/style>/g,'');
		str = str.replace(/<\/?[^>]*>/g,'');
		str = str.replace(/\s+/g,'');
		str = str.replace(/&nbsp;/ig,'');
		return str;
	}
				


</script>
</html>